package com.punai.customer.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.punai.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 标准材料与客户材料的对应对象 cus_link_material_sta_cus
 *
 * @author zxw_
 * @date 2023-01-30
 */
public class CusLinkMaterialStaCus {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private String id;

    /**
     * 公司id
     */
    private Long companyId;

    /**
     * 标准id
     */
    @Excel(name = "标准id")
    private String staId;

    /**
     * 客户id
     */
    @Excel(name = "客户id")
    private String cusId;

    private BigDecimal unitCoefficient;

    private BigDecimal specCoefficient;

    @TableField(exist = false)
    private String staName;
    @TableField(exist = false)
    private String cusName;


    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setStaId(String staId) {
        this.staId = staId;
    }

    public String getStaId() {
        return staId;
    }

    public void setCusId(String cusId) {
        this.cusId = cusId;
    }

    public String getCusId() {
        return cusId;
    }

    public String getStaName() {
        return staName;
    }

    public void setStaName(String staName) {
        this.staName = staName;
    }

    public String getCusName() {
        return cusName;
    }

    public void setCusName(String cusName) {
        this.cusName = cusName;
    }

    public BigDecimal getUnitCoefficient() {
        return unitCoefficient;
    }

    public void setUnitCoefficient(BigDecimal unitCoefficient) {
        this.unitCoefficient = unitCoefficient;
    }

    public BigDecimal getSpecCoefficient() {
        return specCoefficient;
    }

    public void setSpecCoefficient(BigDecimal specCoefficient) {
        this.specCoefficient = specCoefficient;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("companyId", getCompanyId())
                .append("staId", getStaId())
                .append("cusId", getCusId())
                .toString();
    }
}
